package com.scwatch.core.domain;

import com.scwatch.common.web.Anchor;

import javax.persistence.*;

/**
 * AnchorComment
 * 
 * @author gjl
 * 
 */
@Entity
@DiscriminatorValue("Anchor")
public class AnchorComment extends Comment {
	private static final long serialVersionUID = 1L;

	@Override
	@Transient
	public Anchor getAnchor() {
		return info;
	}

	private Info info;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "f_fid", nullable = false, insertable = false, updatable = false)
	public Info getInfo() {
		return info;
	}

	public void setInfo(Info info) {
		this.info = info;
	}
}